package com.bdqn.service.Impl;

import com.bdqn.entity.Department;
import com.bdqn.entity.Parameters;
import com.bdqn.mapper.DepartmentManageMapper;
import com.bdqn.service.DepartmentManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DepartmentManageServiceImpl implements DepartmentManageService {
    @Autowired
    DepartmentManageMapper mapper;
    @Override
    public List<Department> getDepartmentInfo(Parameters parameters) {
        return mapper.getDepartmentInfo(parameters);
    }

    @Override
    public int getCount(Parameters parameters) {
        return mapper.getCount(parameters);
    }

    @Override
    public int delDepartmentInfoss(int[] id) {
        return mapper.delDepartmentInfoss(id);
    }

    @Override
    public int addDepartmentInfo(Department department) {
        return mapper.addDepartmentInfo(department);
    }

    @Override
    public int delDepartmentInfo(int id) {
        return mapper.delDepartmentInfo(id);
    }

    @Override
    public int updateDepartmentInfo(Department department) {
        return mapper.updateDepartmentInfo(department);
    }

    @Override
    public List<Department> getDepartment() {
        return mapper.getDepartment();
    }
}
